/**
 * Created by 小虎Oni on 2016/9/3.
 */
'use strict';
app.controller('BillListCtrl', function($scope,UserService,TokenService,$state) {
  $scope.goCheckLogistics =function(){
    $state.go('logistics')
  };

  $scope.goEvaluate =function(){
    $state.go('evaluate')
  };

  $scope.goReturn =function(){
    $state.go('return')
  };
  $scope.panelIndex = 0;
  $scope.showSecondSubType=function(index){
    if($scope.panelIndex == index){
      return;
    }
    $scope.panelIndex = index;
  };
  $scope.queryData0 ={};
  $scope.queryData1 ={};
  $scope.queryData2 ={};
  $scope.queryData3 ={};
  function getQuery(type){
    TokenService.getLocalUserId().then(function (user_id) {
      TokenService.getLocalToken().then(function (token) {
        UserService.getOrderInfo()(user_id,type,token).then(function (res) {
          $scope.addressData = res;
        })
      })
    })


  }
});
